package com.alibaba.ecool.dao.impl;

import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;


import com.alibaba.ecool.bean.Divide;
import com.alibaba.ecool.bean.Multichoice;
import com.alibaba.ecool.bean.Question;

import com.alibaba.ecool.dao.MultichoiceDAO;


public class MultichoiceDAOImpl extends SqlMapClientDaoSupport implements MultichoiceDAO{

	@Override
	public List getMultichoice() {
		return getSqlMapClientTemplate().queryForList("getMultichoice",null);
	}
 
	@Override
	public void insertMultichoice(Multichoice multichoice) {
			this.getSqlMapClientTemplate().insert("insertMultichoice", multichoice);
		
	}

	public int getCountByDifficult(Question qes) {
		return (Integer)getSqlMapClientTemplate().queryForObject("getCountByDifficultM", qes);
	} 

	@Override
	public List getMultichoiceByRow(Question qes) {
		return getSqlMapClientTemplate().queryForList("getMultichoiceByRow", qes);
	}




}
